Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: manual addition of non-scrappable councils #76

Merged
merged 6 commits into from
Nov 28, 2023
Merged

Conversation

keonly
Copy link
Contributor

@keonly keonly commented Nov 28, 2023

스크랩이 불가능한 의회의 경우 runner.py에서 --import-from-json 옵션(+ -m (Mongo에 저장하는 옵션))을 지정해 수동으로 DB에 추가할 수 있습니다.

이 때 입력으로 주어지는 json은 스크랩하여 받아온 형태와 동일하여야 합니다:

// 예시 JSON 형태
{
    "1": [],
    "2": [
        {
            "name": "홍길동",
            "jdName": "활빈당"
        },
        {
            "name": "임꺽정",
            "jdName": "무소속"
        },
    ]
}

추가적으로 API의 커맨드라인 옵션을 스크랩 스크립트와 유사하도록 수정하였으며, runner.py에서 잘못 받아오던 인자들을 수정하였습니다.

@keonly keonly merged commit 4bf5776 into main Nov 28, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant